package com.lingz.manager.modules.wuxue.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.lingz.manager.modules.wuxue.entity.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @Classname TuopuInsectData
 * @Description TODO
 * @Date 2023/11/27 14:42
 * @Created by mjh
 */
@Data
@Entity
@Table(name = "w_tuopu_insect_data")
@TableName("w_tuopu_insect_data")
@ApiModel(value = "托普虫情数据")
public class TuopuInsectData extends BaseEntity {

    @ApiModelProperty(value = "设备id")
    private String deviceId;

    @ApiModelProperty(value = "图片地址")
    private String imgUrl;
    @ApiModelProperty(value = "图片编号")
    private String imgId;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "图片拍照时间")
    private Date imgTime;
    @ApiModelProperty(value = "虫子数量")
    private Long insectNumber;
    @ApiModelProperty(value = "虫类编号")
    private String insectTypeId;
    @ApiModelProperty(value = "点位信息x")
    private String featureX;
    @ApiModelProperty(value = "点位信息y")
    private String featureY;
}
